<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>会员登录</title>
    
    <meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">
    
    <link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>    
    <link href="css/AeroWindow.css?r=123" rel="stylesheet" type="text/css"/>
    <link href="css/login.css" rel="stylesheet" type="text/css"/>
    
    <script type="text/javascript" src="js/jquery-1.4.2.min.js"></script> 
    <script type="text/javascript" src="js/jquery-ui-1.8.1.custom.min.js"></script> 
    <script type="text/javascript" src="js/jquery.easing.1.3.js"></script>         
    <script type="text/javascript" src="js/jquery-AeroWindow.js"></script>
    
    <script type="text/javascript">
    	$(document).ready(function() {
			$('#click_show_window2').click(function() {
				$('#register_window2').AeroWindow( {
					WindowTitle : '注册会员',
					WindowPositionTop : 'center',
					WindowPositionLeft : 'center',
					WindowWidth : 720,
					WindowHeight : 430,
					WindowAnimation : 'easeOutCubic',
					WindowResizable : false,
					WindowDraggable : true,
					WindowMinimize : false,
					WindowMaximize : true,
					WindowClosable : true
				});
			});
		});
    </script>
  </head>
  
  <body background="images/bg_img.jpg">
  	<s:include value="/top.jsp"></s:include>
  	
  	<div id="register_window2" style="display: none;">
      <iframe src="register.jsp" width="100%" height="100%" style="border: 0px;" frameborder="0"></iframe>
    </div>
  	
    <div class="login_div">
    	<div class="login_div_top"></div>
    	
    	<div class="login_div_left">
    		<table style="font-size: 13px; position: absolute; top: 30px;">
		    	<s:form action="user_login" method="post">
		    		<tr>
					  	<td><strong>用户名：</strong></td>
					  	<td><s:textfield name="account" cssStyle="height: 22px;"/></td>
					</tr>
					<tr style="height: 10px;"></tr>
					<tr>
						<td><strong>密码：</strong></td>
						<td><s:password name="password" cssStyle="height: 22px;"/></td>
					</tr>
					<tr style="height: 10px;"></tr>
					<tr>
						<td rowspan="2"><strong>登陆有效期&nbsp;</strong></td>
						<td><input type="radio" name="timeout" value="-1" checked> 关闭浏览器即失效</td>
					</tr>
					<tr>
						<td><input type="radio" name="timeout" value="<%= 14 * 24 * 60 * 60 %>"> 两周内有效</td>
					</tr>
					<tr style="height: 10px;"></tr>
					<tr>
						<th colspan="2">
						<s:submit value="登  录" cssStyle="width: 80px; height: 30px;"/>
						&nbsp;<s:reset value="重  置" cssStyle="width: 80px; height: 30px;"/>
						</th>
					</tr>
		    	</s:form>
			</table>
			<a style="color: red;">${ message }</a>
    	</div>
    	
    	<div class="login_div_right">
    		<img src="images/login_img/welcome_text.gif" style="position: absolute; top: 30px;"/>
    		<br/>
    		<div id="click_show_window2">
    			<a style="cursor: pointer;"><img src="images/login_img/register_icon.jpg" style="position: absolute; top: 150px; left: 45px; border: 0px;"/></a>
    		</div>
    	</div>
    	
    </div>
    
    <div style="position: absolute; bottom: 0px;">
   		<s:include value="/bottom.jsp"></s:include>
   	</div>
   	
   	${ warning }
  </body>
</html>
